package dae;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Channel
{
    @XmlAttribute
    private String source;
    @XmlAttribute
    private String target;

    @Override
    public String toString()
    {
        return getSource() + "->" + getTarget();
    }

    /**
     * channel记录sampler与动画数据对于关系
     */
    public String getSource()
    {
        return source.replace("#", "");
    }

    public String getTarget()
    {
        return target.replace("#", "");
    }
}
